import Vue from 'vue'
import VueRouter from 'vue-router'
import Reg from '@/views/Reg/Reg.vue'
import Login from '@/views/Login/Login.vue'
// 注册路由
Vue.use(VueRouter)
// 添加路由规则
const routes = [
  {
    path:'/reg',
    name:'reg',
    component:Reg
  },
  {
    path:'/login',
    name:'login',
    component:Login
  },
]
// 创建路由实例
const router = new VueRouter({
  routes
})
// 暴露路由实例
export default router
